home *** CD-ROM | disk | FTP | other *** search
- Para0003.Mod Last On list Changes
- ``Parapuke`` WWIVnet #1 AT 8251
- Wed Feb 03 09:58:07 1993
-
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name: Para0003.Mod Mod Authors: Parapuke │
- │ Difficulty: 1 of 10 (block copy) Date: 02/03/93 │
- │ WWIV Version: WWIV 4.22 │
- │ Files Affected: Lilo.C │
- │ Description: This mod will change your listing of Last On users to show │
- │ not only who logged on but when, where they are from as well │
- │ the normal modem speed and calls that day. │
- └────────────────────────────────────────────────────────────────────────────┘
-
- This one is a mod that took shape when I looked at the dull, bland, logon
- list, wishing that without having to go to Uedit or looking at the logs,
- where and when a person called. It gives your user a list of just who and
- where people call your system from. If a user reads this information
- right, they can also figure out when your system is least busy and can
- figure their own time frames to call since they have a listing of the times
- a person logs on. Here is the example of the completed mod.
-
-
- Last few callers on The Resource Center for the date 02/03/93:
-
- [20371] Drizzt Do'Urden #7 05:44:49 Montreal, QB, CAN 2400 - 1
- [20372] Smurf #88 06:12:23 Terre Haute 2400 - 1
- [20373] Madman #32 06:47:03 Ft Lauderdale, FL, USA 14400/V.32/LAPM/V.42bis - 1
- [20374] The Dragoon #89 08:25:51 Terre Haute, IN, USA 2400 - 1
- [20375] Tunes #14 08:35:22 Terre Haute, IN, USA 2400 - 1
- [20376] Lds #41 08:40:19 Terre Haute, IN, USA 2400 - 1
- [20377] Money Man #61 09:08:39 Terre Haute, IN, USA 14400/V.32/LAPM/V.42bis - 1
- [20378] M Mouse #50 09:38:13 Terre Haute, IN, USA 14400/V.32/LAPM/V.42bis - 1
-
-
- Let me tell you that the only changes to make here are those marked with a
- + (plus) in the listings and - (minus) means to remove a line. Though
- there is a call for a get_string, I have used code to call up the name of
- your local FAVORITE system and I am not really sure it will work from there
- so I have asked that you just replace that line. Feeling gutsy and wanna
- see if it works from the strings?
-
- You may either get brave and type each line in or use the easy way and just
- copy the lines into place.
-
- Well, lets get started. First, of course, back up your source code.
-
- Then load up file Lilo.C and go to void logon(void)
-
- Look for "Laston.Txt" and then little ways down......
-
-
- copy_line(s1,ss,&pos,len);
- if ((s1[0]) && live_user) {
- if (i) {
- i=0;
- nl();
- nl();
- - pl(get_string(362)); \* remove this, replace with next line *\
- + npr("\r\n1Last few callers on 2%s 1for the date 2%s:0\r\n",syscfg.systemname,date()); \*this line probably wrapped in posting, attach to above *\
- nl();
- }
- pl(s1);
- }
- } while (pos<len);
- }
- if ((actsl!=255) || (incom)) {
- sl1(0,"");
- sl1(0,s);
- sl1(1,"");
- - sprintf(s,"%ld: %s %s - %d\r\n", \* erase this, replace with next *\
- + sprintf(s,"4[%ld]0 4%s1 %s7 %s, %s, %s %s - %d0\r\n",
- status.callernum1,
- nam(&thisuser,usernum),
- + times(),
- + thisuser.city,
- + thisuser.state,
- + thisuser.country,
- curspeed,
- thisuser.ontoday);
- sprintf(s1,"sUSER.LOG",syscfg.gfilesdir);
- f=open(s1,O_RDWR | O_BINARY | O_CREAT, S_IREAD | S_IWRITE);
-
- Thats it... compile and AFTER the first user logs on after insertion of
- this mod, you will see the difference in your "Last Caller" listings when a
- person first logs on....
-